﻿using System;
using System.Web.UI;

namespace SystemX.Web
{
    /// <summary>
    /// an interface providing access to the underlying HtmlTextWriter when rendering controls
    /// </summary>
    public interface IHtmlWriterControl
    {
        /// <summary>
        /// underlying htmltextwriter instance for rendering contents
        /// </summary>
        HtmlTextWriter HtmlWriter { get; }
        /// <summary>
        /// which page this control belongs to
        /// </summary>
        Page CurPage { get; }
    }
}
